/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/KeyExchange/dhCalcThread.h,v 1.3 2003/11/21 12:39:24 itsme Exp $
 *
 *
 */


#ifndef __DHCALCTHREAD_H__

#include <windows.h>
#include "nhThread.h"

#include "dhCalcRequest.h"

class CCPhoneDlg;

/* ----------------------------------------------- */
class CalcThread : public NHThread {
public:
    CalcThread(CCPhoneDlg& dlg, CalcRequestQueue& requestqueue)
        : m_calcrequests(requestqueue), m_dlg(dlg)
    {

    }


    void SetLowPriority();
    void SetHighPriority();
protected:
    virtual DWORD ThreadProc();
    virtual const char* name() const { return "CalcThread"; }

private:
    CalcRequestQueue& m_calcrequests;

    CCPhoneDlg& m_dlg;
};


#define __DHCALCTHREAD_H__
#endif
